Legend rank per pie slice#7723
Conversation
Each entry then corresponds to one slice.
|
I fixed the baseline-b64 test mentioned in my previous comment. This time the failed baseline test seems to contain only minimal pixel differences. Any advice here? @emilykl |
|
Sorry for the spam, I saw that kaleido was bumped for the CI pipeline which explains the pixel differences. I updated the baseline image. All good from my side! Should I look into the failed flaky test? Or do you think this is fine? |
|
Hi @my-tien ! Don't worry about the flaky test for now, you're right that it's unrelated to this PR. Could you link an issue to this PR? You can open a new one if needed. I'm OK with this change, but could you explain why it's better for you to use |
|
Thanks Emily, I forgot to create an issue for this, sorry. I now added an issue and linked it in the Pull Request description. I tried to explain the issue there. Let me know if I should add anything to it! |



This PR makes it possible to pass arrays to the pie property 'legendrank' so that legend rank assignment can be configured per slice.
Changes:
Previously,
traces.pie.legendrankonly accepted one value that applied for all slices. With this PR, slice legend entries can be individually ranked in the legend. E.g. the below JSON would produce the displayed chart:This fixes #7778
Note:
This feature is not expected to work when pie
valuesare not set.Disclaimer
I am required to add that…the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.